#基础镜像
FROM docker.cloudimages.asia/openjdk:8

#作者
MAINTAINER gj

# 设置工作目录
WORKDIR /usr/local/campus/apps
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime

COPY ./yanchu-admin.jar yanchu-admin.jar

# 暴露 Spring Boot 应用程序的端口号
EXPOSE 8081

ENTRYPOINT ["nohup","java","-jar","-Xms200m","-Xmx500m","-Dfile.encoding=utf-8","yanchu-admin.jar",">",">/dev/null","2>log","&"]
